package cn.mothin.frame.core.bean;

import java.util.ArrayList;
import java.util.List;

public class OperationLinkData {
	protected boolean separator = false;
	protected boolean rowOperation = false;
	protected String id;
	protected String ico;
	protected String name;
	protected String action;
	protected List<OperationLinkData> children;

	public OperationLinkData() {

	}

	public OperationLinkData(boolean separator) {
		this.separator = separator;
	}

	public void addChild(OperationLinkData operationLinkData) {
		if (children == null) {
			children = new ArrayList<OperationLinkData>();
		}
		children.add(operationLinkData);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getIco() {
		return ico;
	}

	public void setIco(String ico) {
		this.ico = ico;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public boolean isSeparator() {
		return separator;
	}

	public void setSeparator(boolean separator) {
		this.separator = separator;
	}

	public List<OperationLinkData> getChildren() {
		return children;
	}

	public void setChildren(List<OperationLinkData> children) {
		this.children = children;
	}

	public boolean isRowOperation() {
		return rowOperation;
	}

	public void setRowOperation(boolean rowOperation) {
		this.rowOperation = rowOperation;
	}

}
